package org.sample.vm.classloading;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Application {
	
	private final static String CLASS_FILE_PATH = "";

	public static void main(String[] args) throws IOException {
		InputStream input = new FileInputStream(CLASS_FILE_PATH);
		byte[] classBytes = new byte[input.available()];
		int readLength = input.read(classBytes);
		if (readLength != classBytes.length) {
			System.out.println("Read class file not completed.");
		}
		input.close();
		System.out.println(JavaClassExecuter.execute(classBytes));
	}

}
